{% extends 'bootstrap/base.html' %}

{% block title %}
    wsite - {% block page_name %} name {% endblock %}
{% endblock %}

{% block navbar %}
    <div class="navbar navbar-inverse" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only"> Toggole navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="{{ url_for('index_page') }}">WSITE</a>
            </div>
            <div class="navbar-collapse collapse">
                    <ul class="nav navbar-nav">
                        <li><a href="{{ url_for('index_page') }}">HOME</a></li>
                        <li><a href="{{ url_for('user_page', name='test') }}">USER</a></li>
                        <li><a href="{{ url_for('db_index') }}">DB</a></li>
                        <li><a href="{{ url_for('mail_index') }}">MAIL</a></li>
                    </ul>
                </div>
        </div>
    </div>
{% endblock %}

{% block content %}
    <div class="container">
    {# 处理站点全部的闪现消息#}
        {% for message in get_flashed_messages() %}
            <div class="alert alert-warning">
                <button type="button" class="close" data-dismiss="alert">&times;</button>
            {{ message }}
            </div>
        {% endfor %}
        {% block page_content %}
            <div class="page-header">Fill page content here</div>
        {% endblock %}
    </div>
{% endblock %}

{% block scripts %}
    {{ super() }}
    {{ moment.include_moment() }}
{% endblock %}